package com.smart.manager.work.views;

import com.smart.common.entities.core.BaseView;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 管家视图
 * @author leo
 * @date 2023/09/21
 */
@Data
@Entity
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@View(name = "work_basic_staff")
public class BasicStaffView extends BaseView {

    @Id
    @ApiModelProperty("管家代码")
    private String code;

    @ApiModelProperty("管家代码")
    private Long id;

    @ApiModelProperty("管家名称")
    private String name;

    @ApiModelProperty("管家头像")
    private String avatar;

    @ApiModelProperty("管家手机号")
    private String phone;

    @ApiModelProperty("是否是管理员")
    private Boolean isManage;


}
